package com.rs.game.player.dialogues;

import com.rs.game.player.actions.HomeTeleport;

public class Home extends Dialogue {

	@Override
	public void start() {
		sendOptionsDialogue("Select an Option", "Teleport Home", "Lodestone Network");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			switch (componentId) {
			case OPTION_1:
				player.stopAll();
				player.getActionManager().setAction(new HomeTeleport(HomeTeleport.REAL_HOME_TELEPORT));
				break;
			case OPTION_2:
				player.stopAll();
				player.getInterfaceManager().sendInterface(1092);
				break;
			}
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}
	
}